import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '删除状态',
    dataIndex: 'delFlag'
   },
   {
    title: '租户ID',
    dataIndex: 'tenantId'
   },
   {
    title: '低代码应用ID',
    dataIndex: 'lowAppId'
   },
   {
    title: '设备大类',
    dataIndex: 'mpBigType'
   },
   {
    title: '设备类型',
    dataIndex: 'mpDeviceType'
   },
   {
    title: '监测量类型',
    dataIndex: 'mpPorintType'
   },
   {
    title: '标准监控信息名称',
    dataIndex: 'mpPointName'
   },
   {
    title: '信号类型',
    dataIndex: 'mpSingType'
   },
   {
    title: '告警信息',
    dataIndex: 'mpAlarm'
   },
   {
    title: '编码(不含顺序号)',
    dataIndex: 'mpCode'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '删除状态',
    field: 'delFlag',
    component: 'InputNumber'
  },
 {
    label: '租户ID',
    field: 'tenantId',
    component: 'InputNumber'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '删除状态',
    field: 'delFlag',
    component: 'InputNumber',
  },
  {
    label: '租户ID',
    field: 'tenantId',
    component: 'InputNumber',
  },
  {
    label: '低代码应用ID',
    field: 'lowAppId',
    component: 'Input',
  },
  {
    label: '设备大类',
    field: 'mpBigType',
    component: 'Input',
  },
  {
    label: '设备类型',
    field: 'mpDeviceType',
    component: 'Input',
  },
  {
    label: '监测量类型',
    field: 'mpPorintType',
    component: 'Input',
  },
  {
    label: '标准监控信息名称',
    field: 'mpPointName',
    component: 'Input',
  },
  {
    label: '信号类型',
    field: 'mpSingType',
    component: 'Input',
  },
  {
    label: '告警信息',
    field: 'mpAlarm',
    component: 'Input',
  },
  {
    label: '编码(不含顺序号)',
    field: 'mpCode',
    component: 'Input',
  },
];
